//下拉配置项
const statusOption = {
    //激活状态
    active_status: [{
        value: true,
        label: '是',
        color: '#13ce66',
    },
    {
        value: false,
        label: "否",
        color: '#FF4949',
    }],

    boolint_status: [{
        value: 1,
        label: '是'
    },
    {
        value: 0,
        label: "否"
    }],

    //demo
    case_test_type: [{
        value: 1,
        label: '性能'
    }, {
        value: 2,
        label: '可靠性'
    }, {
        value: 3,
        label: '试验准备_占用'
    }, {
        value: 4,
        label: '试验准备_非占用'
    }],

    case_work_hour: [{
        value: '1',
        label: '技能'
    }, {
        value: '2',
        label: '技术'
    }],

    //审批状态
    approve_status: [{
        value: 1,
        label: '审批中',
        color: '#F7BA2A',
    }, {
        value: 2,
        label: '已完成',
        color: '#13ce66',
    }, {
        value: 3,
        label: '被驳回',
        color: '#FF4949',
    }, {
        value: 4,
        label: '审批终止',
        color: '#FF4949',
    }, {
        value: 5,
        label: '驳回上一级',
        color: '#FF4949',
    }, {
        value: 0,
        label: '无审批',
        color: '#C0CCDA',
    }, {
        value: 6,
        label: '已撤回',
        color: '#C0CCDA',
    }],

    //所属模块类型
    model_type: [
        {
            value: 2,
            label: '整车试验',
            url: "/sy_vehicle/vehicletask/edit/"
        },
        {
            value: 4,
            label: '整车道路子任务',
            url: "/sy_vehicle/vehicletaskplan/view/"
        },
        {
            value: 6,
            label: '维修任务',
            url: "/syMaintenance/maintainTask/view/"
        }, {
            value: 7,
            label: '样车流程单',
            url: "/sampleManagement/processCar/"
        }, {
            value: 8,
            label: '台架一级任务',
            url: "/sybench/onetask/edit/"
        }, {
            value: 9,
            label: '台架二级任务',
            url: "/sybench/twotask/edit/"
        }, {
            value: 10,
            label: '台架三级任务',
            url: "/sybench/threetask/view/"
        }, {
            value: 11,
            label: '整车流程单',
            url: "/sy_vehicle/procedure/"
        }
    ],

    //审批类型
    approve_type: [{
        value: 0,
        label: '任务审批',
        url: '/sytaskorder/view/'
    }, {
        value: 1,
        label: '台架任务计划审批',
        url: '/sy_bench/benchtaskplan/view/'
    }, {
        value: 2,
        label: '整车任务计划审批',
        url: '/sy_vehicle/vehicletaskplan/view/'
    }, {
        value: 3,
        label: '保养任务初审',
        url: '/syMaintenance/maintenancePlan/view/'
    }, {
        value: 4,
        label: '保养完成审批',
        url: '/syMaintenance/maintenancePlan/view/'
    }, {
        value: 5,
        label: '开口合同审批',
        url: '/sytaskorder/opencontractnopage/view/'
    }, {
        value: 6,
        label: '报废审批',
        url: '/inventoryMange/scrappedApply/view/'
    }, {
        value: 7,
        label: '维修完成审批',
        url: '/syMaintenance/maintainTask/view/'
    }, {
        value: 8,
        label: '整车流程审批',
        // url: `/sy_vehicle/procedure/${apply_type}/view/`
    }, {
        value: 9,
        label: '整车流程验收审批',
        // url: ''
    }, {
        value: 10,
        label: '任务单全部计划完成审核',
        url: '/sy_vehicle/vehicletask/edit/'
    }, {
        value: 11,
        label: '样车调拨审批',
        url: '/sampleManagement/processCar/allot/view/'
    }, {
        value: 12,
        label: '样车调拨追加审批',
        url: '/sampleManagement/processCar/allot/view/'
    }, {
        value: 13,
        label: '车辆归还申请',
        url: '/sampleManagement/processCar/return/view/'
    }, {
        value: 14,
        label: '车辆牌照申请',
        url: '/sampleManagement/processCar/license/view/'
    }, {
        value: 15,
        label: '车辆销户申请',
        url: '/sampleManagement/processCar/closing/view/'
    }, {
        value: 16,
        label: '燃油申请',
        url: '/sampleManagement/processCar/fuel/view/'
    }, {
        value: 17,
        label: '试验策划',
        url: '/sy_otherbench/benchtask/view/'
    }, {
        value: 18,
        label: '其他台架审批',
        url: '/sy_otherbench/benchtaskplan/view/'
    }, {
        value: 19,
        label: '整车计划结束审批',
        url: '/sy_vehicle/vehicletaskplan/view/'
    }, {
        value: 20,
        label: '动力总成任务最终分解审批',
        url: '/sy_bench/benchtask/edit/'
    }, {
        value: 21,
        label: '整车任务单日期变更审批',
        url: '/sy_vehicle/vehicletask/edit/'
    }, {
        value: 22,
        label: '燃油申请验收审批',
        url: '/sampleManagement/processCar/fuel/view/'
    },
    {
        value: 24,
        label: '样件报修审批',
        url: '/sybench/sampleErrProject/view/'
    },
    {
        value: 25,
        label: '台架二级任务审批',
        url: '/sybench/twotask/edit/'
    },
    {
        value: 26,
        label: '名牌审批',
        url: '/sampleManagement/processCar/nameplate/view/'
    },
    {
        value: 27,
        label: '样车位置审批',
        url: '/sampleManagement/processCar/location/view/'
    },
    {
        value: 28,
        label: '最小试验单元审批',
        url: '/syStandardLib/caselibrary/view/'
    },
    {
        value: 29,
        label: '试验大纲审批',
        url: '/sybench/onetask/edit/'
    },
    {
        value: 30,
        label: '资源报废单审批',
        url: '/inventoryMange/scrappedApply/view/'
    },
    {
        value: 31,
        label: '盘点审批',
        url: '/warehouse/stocktakingManagement/view/'
    }],

    //总览审批状态
    home_approve_type: [{
        value: 1,
        label: '审批中',
        color: '#F7BA2A',
    }, {
        value: 3,
        label: '被驳回',
        color: '#FF4949',
    }, {
        value: 4,
        label: '审批终止',
        color: '#FF4949',
    }, {
        value: 5,
        label: '驳回上一级',
        color: '#FF4949',
    }, {
        value: 'back',
        label: '已撤回',
        color: '#C0CCDA'
    }],

    //任务信息类型
    task_message_type: [{
        value: 1,
        label: '任务单'
    }, {
        value: 2,
        label: '子任务单'
    }, {
        value: 3,
        label: '维修单'
    }, {
        value: 5,
        label: '样车流程单'
    }, {
        value: 6,
        label: '台架二级任务单'
    }, {
        value: 7,
        label: '台架三级任务单'
    }],

    /* 三级任务 */
    three_task_status: [{
        value: 1,
        label: '待排台架',
        color: '#6EE5FE',
    }, {
        value: 2,
        label: '待开始',
        color: '#20A0FF',
    }, {
        value: 3,
        label: '进行中',
        color: "#13CE66",
    }, {
        value: 4,
        label: '暂停中',
    }, {
        value: 5,
        label: '已废除',
        color: '#909399',
    }, {
        value: 7,
        label: '已结束(待检核)',
        color: '#000000',
    }, {
        value: 6,
        label: '已结束',
        color: '#909399',
    }],

    boolint_status: [{
        value: 1,
        label: '是'
    },
    {
        value: 0,
        label: "否"
    }],

    //计划状态
    plan_status: [{
        value: 0,
        label: '待排程',
        color: '#20A0FF'
    }, {
        value: 1,
        label: '已排程',
        color: '#13ce66'
    }],

    /* 二级任务 */
    two_task_status: [{
        value: 0,
        label: '新建',
    }, {
        value: 1,
        label: '待排试验员',
        color: '#6EE5FE',
    }, {
        value: 2,
        label: '待分解',
        color: '#20A0FF',
    }, {
        value: 3,
        label: '待开始',
        color: '#13CE66',
    }, {
        value: 4,
        label: '进行中',
        color: '#000000',
    }, {
        value: 5,
        label: '维修暂停', //名字从暂停中维修暂停
        color: '#F56C6C',
    }, {
        value: 12,
        label: '试验暂停',
        color: '#F56C6C',
    }, {
        value: 6,
        label: '台架占用结束',
        color: '#F56C6C',
    }, {
        value: 7,
        label: '已完成',
        color: '#F56C6C',
    }, {
        value: 8,
        label: '已废除',
        color: '#F56C6C',
    }, {
        value: 9,
        label: '待核检',
        color: '#F56C6C'
    }, {
        value: 10,
        label: '待审核',
        color: '#F56C6C'
    }, {
        value: 11,
        label: '审核中',
        color: '#F56C6C'
    }],

    //整车case包试验类别
    vehicleTestPackage_test_type: [{
        value: 1,
        label: "整车道路试验"
    }, {
        value: 2,
        label: "转鼓试验室"
    }, {
        value: 3,
        label: "环境模拟试验室"
    }, {
        value: 4,
        label: "道路模拟试验室"
    }, {
        value: 5,
        label: "噪声试验室"
    }],

    case_type_two: [{
        value: "试验准备类",
        label: '试验准备类',
        children: [{
            value: "样品准备case",
            label: '样品准备case',
        }, {
            value: "小车准备case",
            label: '小车准备case',
        }, {
            value: "台架下样件换装case",
            label: '台架下样件换装case',
        }, {
            value: "台架下试验准备case",
            label: '台架下试验准备case',
        }]
    }, {
        value: "检测类及非重点台架类",
        label: '检测类及非重点台架类',
        children: [{
            value: "检测任务case",
            label: '检测任务case',
        }, {
            value: "非重点台架试验任务case",
            label: '非重点台架试验任务case',
        }]
    }, {
        value: "重点台架类",
        label: '重点台架类',
        children: [{
            value: "拆装case",
            label: '拆装case',
        }, {
            value: "上下台架case",
            label: '上下台架case',
        }, {
            value: "台架上样件换装case",
            label: '台架上样件换装case',
        }, {
            value: "台架上测试准备case",
            label: '台架上测试准备case',
        }, {
            value: "性能试验任务运行case",
            label: '性能试验任务运行case',
        }, {
            value: "可靠性试验任务运行case",
            label: '可靠性试验任务运行case',
        }]
    }],

    bkms_test_type: [{
        value: '发动机性能',
        label: '发动机性能'
    }, {
        value: '发动机可靠性',
        label: '发动机可靠性'
    }, {
        value: '传动总成变速箱',
        label: '传动总成变速箱'
    }, {
        value: '传动总成离合器',
        label: '传动总成离合器'
    }, {
        value: '传动总成驱动桥',
        label: '传动总成驱动桥'
    }, {
        value: '系统及零部件配气机构试验',
        label: '系统及零部件配气机构试验'
    }, {
        value: '系统及零部件气道试验',
        label: '系统及零部件气道试验'
    }, {
        value: '系统及零部件燃油系统试验',
        label: '系统及零部件燃油系统试验'
    }, {
        value: '系统及零部件水流实验',
        label: '系统及零部件水流实验'
    }, {
        value: '系统及零部件气道试验',
        label: '系统及零部件气道试验'
    }, {
        value: '系统及零部件整车专项测试',
        label: '系统及零部件整车专项测试'
    }, {
        value: '系统及零部件自主搭建临时试验',
        label: '系统及零部件自主搭建临时试验'
    }],
}

//弹窗配置项
const chooseComponent = {
    //选择用户信息
    choseuserData: {
        titleV: "人员",
        selection: false, //是否单选
        selectV: "real_name",
        dialog_width: 820, //弹窗宽度
        searchList: [{
            label: "用户名",
            key: "search",
            searchtype: 'searchall',
            width: 150
        },
        {
            label: "姓名",
            key: "real_name",
            searchtype: 'input'
        }, {
            label: "科室",
            key: "department_ids", //级联选择器
            searchtype: 'department',
            options: [],
            props: {
                checkStrictly: true,
                value: "id",
                label: "department_name",
            }
        }],
        eltableArr: [{
            label: "头像",
            prop: "avatar",
            columType: 'profile',
            width: 80,
        },
        {
            label: "姓名",
            prop: "real_name",
            columType: 'text',
            width: 100,
        },
        {
            label: "用户名",
            prop: "username",
            columType: 'text',
            width: 100,
        },
        {
            label: "科室-角色",
            prop: "departmentRoles",
            columType: 'departmentRoles'
        },
        ],
        getwayname: "users"
    },

    /* 整车试验case */
    vehiclecase: {
        titleV: "整车试验case",
        selection: false, //是否单选
        selectV: "case_no",
        dialog_width: 820, //弹窗宽度
        searchList: [{
            label: "case编号",
            key: "case_no",
            searchtype: 'input'
        }, {
            label: "v1",
            key: "v1",
            searchtype: 'input'
        },
        {
            label: "v2",
            key: "v2",
            searchtype: 'input'
        },
        {
            label: "v3",
            key: "v3",
            searchtype: 'input'
        },
        {
            label: "v4",
            key: "v4",
            searchtype: 'input'
        },
        ],
        eltableArr: [{
            label: "case编号",
            prop: "case_no",
            columType: 'text'
        },
        {
            label: "v1",
            prop: "v1",
            columType: 'text'
        },
        {
            label: "v2",
            prop: "v2",
            columType: 'text'
        },
        {
            label: "v3",
            prop: "v3",
            columType: 'text'
        },
        {
            label: "v4",
            prop: "v4",
            columType: 'text'
        },
        {
            label: "收入合计",
            prop: "total_price",
            columType: 'text'
        }
        ],
        getwayname: "vehiclecase",
    },
}

export default {
    statusOption,
    chooseComponent
}